<%-- 
    Document   : Deposit
    Created on : 2020-4-18, 19:16:17
    Author     : zhang
--%>

<%@page import="entity.Member"%>
<%@page import="dao.MemberDao"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            String name=(String)session.getAttribute("username");
            Member member=new MemberDao().getMemberByName(name);
        %>
        <h1>账户充值</h1>
        <h3>余额：<%=member.getMoney()%></h3>
        <h3>充值金额：</h3>
        <form action="amos">
            <input type="text" name="addmoney"><br><br>
            <button>充值</button>
        </form>
        <a href="Member.jsp?name=<%=name%>">返回</a>
    </body>
</html>
